<script setup>
import { inject } from 'vue';

const bMsg = inject('msg')
const count = inject('count')
const changeCount = inject('changeCount')
// const fn = () => {
//     count.value = 2
// }
</script>

<template>
  <div class="b-page">
    b: {{ bMsg }} --- {{ count }}
    <button @click="changeCount(5)">修改count</button>
  </div>
</template>

<style scoped>
.b-page {
    width: 300px;
    height: 300px;
    border: 2px solid #000;
}

</style>
